#include <iostream>
#include "Thing.h"
#include "Level.h"

int main()
{
    try{
        CCore::getInstance()->Initialize();
        CVideoManager::getInstance()->SetVideoMode(false,640,480);
        CVideoManager::getInstance()->Screen.SetColorKey(255,0,255);
        CVideoManager::getInstance()->SetAppName("Thing | Example Space Shooter","");
        CTimerManager::getInstance()->SetInterval(10,300);

        Level level;
		CCore::getInstance()->AddScene(&level);
        CCore::getInstance()->SetCurrentScene(0);

        CCore::getInstance()->Run();
    }catch(CException& e){
        std::cout << e.what() << std::endl;
    }


    return 0;
}
